package com.by.mapper;

import com.by.bean.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/17
 * @since JDK21
 */
@Mapper
public interface RoleMapper {
    int save(Object entity);


    int update(Object entity);


    int delete(Serializable id);

    List<Role> query();

    List<Role> queryByName(@Param("name") String name,@Param("status") int status);
}
